using System;
using digit.Core;
using System.Data;

namespace SMS.SmManager
{
    public class MsgIn_81Info
    {
        #region CONSTRUCTORS
        public MsgIn_81Info()
        {

            this.m_msgInID = Util.NULL_LONG;
            this.m_requestID = Util.NULL_INT;
            this.m_mobileNo = Util.NULL_STRING;
            this.m_serviceID = Util.NULL_STRING;
            this.m_msgContent = Util.NULL_STRING;
            this.m_requestTime = Util.NULL_DATETIME;
            this.m_status = Util.NULL_BYTE;
        }
        public MsgIn_81Info(long msgInID, int requestID, string mobileNo, string serviceID, string msgContent, DateTime requestTime, byte status)
        {

            this.m_msgInID = msgInID;
            this.m_requestID = requestID;
            this.m_mobileNo = mobileNo;
            this.m_serviceID = serviceID;
            this.m_msgContent = msgContent;
            this.m_requestTime = requestTime;
            this.m_status = status;
        }
        public MsgIn_81Info(DataRow dRow)
        {

            this.m_msgInID = (long)Util.ReplaceDBNullTo(dRow["msgInID"], Util.NULL_LONG);
            this.m_requestID = (int)Util.ReplaceDBNullTo(dRow["requestID"], Util.NULL_INT);
            this.m_mobileNo = Util.ReplaceDBNullTo(dRow["mobileNo"], Util.NULL_STRING).ToString();
            this.m_serviceID = Util.ReplaceDBNullTo(dRow["serviceID"], Util.NULL_STRING).ToString();
            this.m_msgContent = Util.ReplaceDBNullTo(dRow["msgContent"], Util.NULL_STRING).ToString();
            this.m_requestTime = (DateTime)Util.ReplaceDBNullTo(dRow["requestTime"], Util.NULL_DATETIME);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_INT);
        }
        #endregion

        #region ATTRIBUTES
        private long m_msgInID;
        private int m_requestID;
        private string m_mobileNo;
        private string m_serviceID;
        private string m_msgContent;
        private DateTime m_requestTime;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public long MsgInID
        {
            get
            {
                return this.m_msgInID;
            }
            set
            {
                this.m_msgInID = value;
            }
        }

        public int RequestID
        {
            get
            {
                return this.m_requestID;
            }
            set
            {
                this.m_requestID = value;
            }
        }

        public string MobileNo
        {
            get
            {
                return this.m_mobileNo;
            }
            set
            {
                this.m_mobileNo = value;
            }
        }

        public string ServiceID
        {
            get
            {
                return this.m_serviceID;
            }
            set
            {
                this.m_serviceID = value;
            }
        }

        public string MsgContent
        {
            get
            {
                return this.m_msgContent;
            }
            set
            {
                this.m_msgContent = value;
            }
        }

        public DateTime RequestTime
        {
            get
            {
                return this.m_requestTime;
            }
            set
            {
                this.m_requestTime = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}